wayland: Maybe postpone xdg-foreign state setup until mapping
authorJonas Ådahl <jadahl@gmail.com>
Fri, 1 Dec 2017 04:18:30 +0000 (12:18 +0800)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 8 Dec 2017 03:13:30 +0000 (22:13 -0500)
commit7c743e6f416b1222340f26ce2e0e1b1fa30cfa65
tree5a01246cb86cb99cf765507a1100a0c487452e59
parent0156c52a2cfcc92d89fd7958f639ad47f6891c7c
wayland: Maybe postpone xdg-foreign state setup until mapping

In order to map a window with the correct initial parent-child
relationship when a modal dialog is set up to be a child of an imported
foreign window, the relationship must be set up before the window is
mapped.

In order to do this, if a window is not yet mapped, postpone the
relationship setup until when the window is eventually mapped.

https://bugzilla.gnome.org/show_bug.cgi?id=791062
gdk/wayland/gdkwindow-wayland.c